package com.bm.server.controller;

import com.bm.server.service.intf.SmsLogService;
import com.bm.server.vo.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/smsLog")
@Api(tags = "登录验证码的相关操作-李松洋")
@CrossOrigin
public class SmsLogController {
    @Resource
    private SmsLogService service;
    @ApiOperation(value = "发送验证码")
    @PostMapping("/sendCode")
    public R sendCode(@RequestParam String phone){
        return  service.sendLoginSms(phone);
    }
}
